<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>VectorLayer.setIconSize</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="VectorLayer.htm">VectorLayer</a>.<wbr>setIconSize</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setIconSize(int height [, int width ])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the size of the icon to be used in legend box.<br><br>
By default, if a legend box is available on the chart, ChartDirector will insert an legend entry if the VectorLayer is named. The size of the icon will be the size of the vectors used on the chart, using a short vector length to fit the legend box.<br><br>
This method can be used to override the legend box settings to specify a custom width/height for the icons of the current VectorLayer.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>height</td><td>(Mandatory)</td><td>The height of the icon in pixels.</td></tr><tr><td>width</td><td>0</td><td>The width of the icon in pixels. 0 means the width is automatically determined.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
